// 查询列表页接口
const getOrderDetailPage = (params) => {
  return $axios({
    url: '/order/page',
    method: 'get',
    params
  })
}

//查看接口
const queryOrderDetailById = (id) => {
  return $axios({
    url: `order/orderDetail/${id}`,
    method: 'get',

  })
}
// const queryOrderDetailById = (id) => {
//   return $axios({
//     url: `/orderDetail`,
//     method: 'post',
//     data:id
//   })
// }

// 取消，派送，完成接口
const editOrderDetail = (params) => {
  return $axios({
    url: '/order',
    method: 'put',
    data: { ...params }
  })
}
function cartListApi(data) {
  return $axios({
    'url': '/shoppingCart/list',
    // 'url': '/front/cartData.json',
    'method': 'get',
    params:{...data}
  })
}
